package com.tank.response;

import java.io.Serializable;

import com.tank.request.CreateBulletRequest;

public class CreateBulletResponse implements Serializable {

	private int x;
	private int y;
	private int movingDirect; // 子弹运行方向
	private String tankId; // 发射该子弹的坦克的id

	public CreateBulletResponse(CreateBulletRequest request) {
		this.setMovingDirect(request.getMovingDirect());
		this.setTankId(request.getTankId());
		this.setX(request.getX());
		this.setY(request.getY());
	}

	public CreateBulletResponse() {

	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getMovingDirect() {
		return movingDirect;
	}

	public void setMovingDirect(int movingDirect) {
		this.movingDirect = movingDirect;
	}

	public String getTankId() {
		return tankId;
	}

	public void setTankId(String tankId) {
		this.tankId = tankId;
	}

}
